﻿//Created by Action Script Viewer - http://www.buraks.com/asv
package Init {
    import flash.events.*;
    import Engine.Init.*;
    import flash.net.*;

    public class EffectsInit extends InitializationAction {

        public static const INIT_ID:String = "EffectsInit";

        private var m_settingsUrl:String;

        public function EffectsInit(_arg1:String){
            super(INIT_ID);
            this.m_settingsUrl = _arg1;
        }
        override public function execute():void{
            var _local1:URLLoader = new URLLoader(new URLRequest(this.m_settingsUrl));
            _local1.addEventListener(Event.COMPLETE, this.loadComplete);
        }
        protected function loadComplete(_arg1:Event):void{
            Global.gameSettings.m_effectsConfigXml = new XML(_arg1.target.data);
            dispatchEvent(new Event(Event.COMPLETE));
        }

    }
}//package Init 
